#ifndef __MYRTC_H
#define __MYRTC_H
#include "stm32f10x.h"                  // Device header
#include <time.h>

typedef struct{
	uint16_t rtc_year;
	uint16_t rtc_mon;
	uint16_t rtc_day;
	uint16_t rtc_hour;
	uint16_t rtc_min;
	uint16_t rtc_sec;
	time_t rtc_time_stamp;
}myrtc_struct;







void MyRTC_Init(void);
int MyRTC_SetTime(myrtc_struct *myrtc_time);
int MyRTC_ReadTime(myrtc_struct *myrtc_time);










#endif

